package cm.cool.web.data;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import cm.cool.web.bean.Admin;

@Mapper
public interface LoginMapper {
	
	/**
	 * 登录的数据层
	 * @param user
	 * @return
	 */
	@Select("select * from ec_admin where account = #{account} and password = #{password}" )
	Admin login(Admin user);
	
}
